package com.zyy.meetObject;
import java.util.Scanner;
public class methodExerTest {
    public static void main(String[] args){
        methodExer m1 = new methodExer();
        m1.method1();
        System.out.println();
        int m;
        int n;
        Scanner scan = new Scanner(System.in);


        int S = m1.method2();
        System.out.println("S = " + S);
        System.out.print("请输入长和宽：");
        m = scan.nextInt();
        n = scan.nextInt();

        S = m1.method3(m,n);
        System.out.println("S = " + S);
    }
}
